<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
</html>
<script>
	
	let str = '<div class=”box1”>我要下课<p>你好</p></div>'
	
	let re = /<[^>]+>/g;
	
	// console.log(re.exec(str));
	console.log(str.replace(re,''));
	
</script>